home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: cwi.nl!dik
- From: dik@cwi.nl (Dik T. Winter)
- Subject: Re: division problem
- Message-ID: <DM0urI.1JL@cwi.nl>
- Sender: news@cwi.nl (The Daily Dross)
- Nntp-Posting-Host: chrysant.cwi.nl
- Organization: CWI, Amsterdam
- References: <4ej4ha$66@fountain.mindlink.net> <DLzvGG.2rn@uns.bris.ac.uk> <Pine.SOL.3.90.960130150923.21923F-100000@flute>
- Date: Wed, 31 Jan 1996 01:28:30 GMT
-
- In article <Pine.SOL.3.90.960130150923.21923F-100000@flute> Darrell Grainger <a378grai@cdf.toronto.edu> writes:
- > In your 'trick' you would have 1.5 + 0.4444... = 1.9444... and
- > (int)1.9444... = 1. This means that 1.5 rounds down to 1. This is not
- > proper.
-
- Yup, indeed, but how do you think you obtain 1.5 from an integer divided
- by 9? The formula is an integer divided by 9 so all tricks that properly
- round 9ths are valid.
- --
- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924098
- home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
-